# !/usr/bin python3                                 
# encoding: utf-8 -*-   
# @file     : record.py                       
# @author   : 沙陌 Matongxue_2
# @Time     : 2022-10-16 11:38
# @Copyright: 北京码同学

# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python

from appium import webdriver
from appium.webdriver.common.mobileby import MobileBy
from selenium.webdriver.common.by import By


caps = {}
caps["platformName"] = "android"
caps["app"] = "D:\\360Downloads\\Apk\\jrtt.apk"
caps["deviceName"] = "xxxxx"
caps["udid"] = "5faac4ed"
caps["noSign"] = True
caps["noReset"] = True
caps["unicodeKeyboard"] = True
caps["resetKeyboard"] = True
caps["newCommandTimeout"] = 600
caps["ensureWebviewsHavePages"] = True
caps["autoGrantPermissions"] = True
caps["autoLaunch"] = True

driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)

driver.implicitly_wait(5)
# driver.start_activity()

driver.quit()
